/*
 * @Author: lineCode 1145938682@qq.com
 * @Date: 2024-11-23 18:25:27
 * @LastEditors: lineCode 1145938682@qq.com
 * @LastEditTime: 2024-12-29 06:12:45
 * @FilePath: /backend/shorthand-modules/shorthand-modules-content/src/main/java/com/angus/modules/content/controller/work/CnQuestionController.java
 */
package com.angus.modules.content.controller.work;

import com.angus.common.core.web.controller.BaseController;
import com.angus.common.core.web.domain.AjaxResult;
import com.angus.modules.content.dto.CnCourseQuestionDto;
import com.angus.modules.content.service.ICnQuestionService;
import com.angus.modules.content.vo.CnCourseQuestionVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author liyanan
 * @date 2024/10/28 10:11 AM
 * @description 汉字练习题
 */
@RestController
@RequestMapping("/cn")
public class CnQuestionController extends BaseController {

    @Resource
    private ICnQuestionService cnQuestionService;

    @PostMapping("/getQuestion")
    public AjaxResult getQuestion(@RequestBody CnCourseQuestionDto dto){

        List<CnCourseQuestionVo> question = cnQuestionService.getQuestion(dto);
        return AjaxResult.success(question);
    }

}
